package project.rbac.service;

import project.rbac.domain.dto.UserDto;
import project.rbac.domain.entity.User;
import project.rbac.domain.vo.Result;

/**
 * 业务层接口-用户
 *
 * @author 刘嘉薏
 * @since 2025/5/21 23:09
 */
public interface IUserService extends IBaseService<User, UserDto>{
    boolean deptInUse(int deptId);
    boolean roleInUse(int roleId);
    Result toggle(int id);
    boolean verifyPassword(int userId, String inputPassword);

    Result changePassword(Integer id, String oldPassword, String newPassword);
}
